Total Complexity | 43 |
Dependencies | 8 |
Dependents | 1 |
Total lines | 325 |
Lines of code | 231 |
Logical lines of code | 132 |
Comment lines | 23 |
Methods | 12 |
Properties | 0 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
add_surcharge() | 41 | 11 | 56 | |
update_surcharge() | 47 | 8 | 37 | |
get_credit_card_token_ids() | 54 | 4 | 21 | |
get_surcharge_notification() | 55 | 3 | 21 | |
is_checkout() | 66 | 4 | 8 | |
add_surcharge_settings() | 48 | 1 | 37 | |
enqueue_scripts() | 62 | 3 | 10 | |
create_notification() | 63 | 3 | 10 | |
get_calculated_surcharge_amount() | 67 | 2 | 8 | |
calculate_surcharge_amount() | 69 | 2 | 7 | |
__construct() | 61 | 1 | 11 | |
calculate_percentage_surcharge() | 73 | 1 | 5 |